/* tab */
	tab={
			tab_t: 'default',
			tab_content: 'default',
			load: function(){
				//Default Action
				if(tab.tab_t 	== 'default'){
					var tabt 	= ':first';
					var tabct 	= '.tab_content:first'
				}else{
					var tabt 	= '#'+tab.tab_t;
					var tabct 	= '#'+tab.tab_content;
				}
				jQuery(".tab_content").hide(); //Hide all content
				jQuery("ul.tabs li"+tabt).addClass("active").show(); //Activate first tab
				jQuery(tabct).show(); //Show first tab content
				
				//On Click Event
				jQuery("ul.tabs li").click(function() {
					jQuery("ul.tabs li").removeClass("active"); //Remove any "active" class
					jQuery(this).addClass("active"); //Add "active" class to selected tab
					jQuery(".tab_content").hide(); //Hide all tab content
					var activeTab = jQuery(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
					jQuery(activeTab).fadeIn(); //Fade in the active content
					return false;
				});
			}
			
		}
	/*tab.tab_t 		= 't2';
	tab.tab_content = 'tab_t2'
	window.onload 	= tab.load
	*/
window.onload = tab.load
var str_l =  String(document.location);
arr_parse = str_l.split('&');
var num = arr_parse.length
arr_tab = String(arr_parse[num-1]).split('=');
//alert(arr_tab)
if(arr_tab[0]=='tab'){
	tab.tab_t 		= 'li_'+(arr_tab[1]*1-1);
	tab.tab_content = 'tab'+arr_tab[1];
	window.onload 	= tab.load;
}